<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录</title>
    <link rel="stylesheet" href="/static/css/login.css" >
    <script src='/static/js/login.js'></script>
    <!-- Jquary核心文件 -->
    <script src="/static/js/jquery-1.4.min.js"></script>
    </head>
<body>
    <div id="main">

        <div id="avatar">
        </div>
        <form action="" method="post">
            <div id="account">
                <div class="input-box"><input name="username" id="uname" type="text" placeholder="请输入账号"></div>
                <div class="input-box"><input name="password" id="upass" type="password" placeholder="请输入密码"></div>
            </div>
            <div class="select">
                <select name="identity" class="form-control">
                <option value="user">用户登录</option>
                <option value="admin">管理员登陆</option>
                </select>
            </div>
            <!-- 通过display：none属性将该input元素隐藏起来,该模块用来获取跳转的网页 -->
            <div style="display: none;">
                <input id="next" type="text" name="next_url" value="{{ next_url }}" />
            </div>
            <!-- 该模块用来获取js文件的值 -->
            <div style="display: none;">
                <input id='isError' type="text" name="isError" value="" />
            </div>
            <div id="error-box">
                <!-- 该input标签用于获取js传入的错误信息并发送给后端 -->
                <input id="error-msg" name="error-msg" type="hidden" value="" />
                <span>{{ login_error_msg }}</span>
            </div>

            <button type="submit" class="login-btn" onclick="fnLogin()">登录</button>
        </form>
            <a href="register"><button class="register-btn" onclick="fnLogin()">注册</button></a>


        <div id="footer"></div>
    </div>
</body>
</html>